import string


class Stack:

    def __init__(self, stackId, categoryId, imgUrl, title, description, author, status, quantity):
        self.stackId = stackId
        self.categoryId = categoryId
        self.imgUrl = imgUrl
        self.title = title
        self.description = description
        self.author = author
        self.status = status
        self.quantity = quantity

    def to_dict(self):
        return {
            'stackId': self.stackId,
            'categoryId': self.categoryId,
            'imgUrl': self.imgUrl,
            'title': self.title,
            'description': self.description,
            'author': self.author,
            'status': self.status,
            'quantity': self.quantity
        }
